import {mapGetters} from 'vuex'
export const playlistMixin = {
  activated() {
    this.hasPlayList(this.playingList)
  },
  methods: {
    hasPlayList() {}
  },
  mounted() {
    this.hasPlayList(this.playingList)
  },
  watch: {
    playingList(newVal) {
      this.hasPlayList(newVal)
    }
  },
  computed: {
    ...mapGetters([
      'playingList'
    ])
  }
}
